/*
 * SpringMoveCommand.cpp
 *
 *  Created on: Oct 14, 2008
 *      Author: Ryan
 */

#include "SpringMoveCommand.h"

SpringMoveCommand::SpringMoveCommand( const OOInterface::Point3f& loc  ) :
	OOInterface::MoveCommand(loc)
{
}

SpringMoveCommand::~SpringMoveCommand()
{
}

::Command* SpringMoveCommand::getCommand() const
{
	::Command* cmd = new ::Command;
	cmd->id = CMD_MOVE;
	cmd->params.push_back( getDestination().getX() * 8); //Times by eight to convert to Spring's coordinate system
	cmd->params.push_back( getDestination().getY() );
	cmd->params.push_back( getDestination().getZ() * 8);

	return cmd;
}


